package com.core.bean;

import java.util.List;

/**
 * 王
 * 规格表
 * */
public class Category {
    /**
     * 规格编号
     * */
    private  String id;
    /**
     * 规格名称
     * */
    private  String name;
    /**
     *规格父类
     * */
    private String parent;
    /**
     *  规格父类路径
     * */
    private String path;
    /**
     * 规格子类
     * */
    private List<Category> children;
    /**
     * 规格状态  0停用  1正常
     * */
    private int status;

    public Category() {
    }

    public Category(String id, String name, String parent, String path, List<Category> children, int status) {
        this.id = id;
        this.name = name;
        this.parent = parent;
        this.path = path;
        this.children = children;
        this.status = status;
    }

    @Override
    public String toString() {
        return "CategoryDomain{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", parent='" + parent + '\'' +
                ", path='" + path + '\'' +
                ", children=" + children +
                ", status=" + status +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public List<Category> getChildren() {
        return children;
    }

    public void setChildren(List<Category> children) {
        this.children = children;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
